package com.xgry.bpm.api.base.userInfo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserInfo extends Model<UserInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "userId")
    private Integer userId;

    @TableField("createDate")
    private LocalDateTime createDate;

    @TableField("loginCount")
    private Integer loginCount;

    @TableField("loginDate")
    private Date loginDate;

    private String password;

    @TableField("uName")
    private String uName;

    @TableField("userCode")
    private String userCode;

    @TableField("userImg")
    private String userImg;

    @TableField("userName")
    private String userName;

    @TableField("userState")
    private Integer userState;

    @TableField("roleId")
    private Integer roleId;

    @TableField("personCode")
    private String personCode;

    @TableField("updateDate")
    private LocalDateTime updateDate;

    @TableField("roleIdList")
    private String roleIdList;

    @TableField("userEmail")
    private String userEmail;

    @TableField("verificationCode")
    private String verificationCode;

    @TableField("buttonRole")
    private String buttonRole;

    @TableField("personnelId")
    private Integer personnelId;


    @Override
    protected Serializable pkVal() {
        return this.userId;
    }

}
